import VueRouter from 'vue-router'
import home from './components/home/home.vue'
import merchant from './components/home/merchant.vue'
import found from './components/found/found.vue'
import order from './components/order/order.vue'
import orderDetail from './components/order/orderDetail.vue'
import evaluate from './components/order/evaluate.vue'
import me from './components/me/me.vue'
const router = new VueRouter({
    routes:[
        {path:'/',redirect:"/home"},
        {
            path:'/home',
            component:home,
        },
        {
            path:'/home/shop/:shopId',
            component:merchant,
        },
        {path:'/found',component:found},
        {path:'/order',component:order},
        {path:'/order/show',component:orderDetail},
        {path:'/order/evaluate/:id',component:evaluate},
        {path:'/me',component:me},

    ],
    linkActiveClass:'active'

})
export default  router